home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-04-15 | 950 b | 43 lines | [TEXT/MMCC] |
- // AEThreads.h
- //
- // Copyright © 1993-95 Steve Sisak
- //
- // License is granted to use, modify, make derivative works, and
- // duplicate this code at will, so long as this notice remains intact.
- //
-
- #ifndef __AETHREADS__
- #define __AETHREADS__
- #pragma once
-
- #ifndef __APPLEEVENTS__
- #include <AppleEvents.h>
- #endif
- #ifndef __THREADS__
- #include <Threads.h>
- #endif
-
- #ifdef __cplusplus
- extern "C" {
- #endif
-
- // Call this routine where you would have called AEInstallEventHandler()
- // to have your handler function automatically called from a new thread
- // for each incoming event. The parameter descriptions are the same as
- // those for AEInstallEventHandler() and NewThread()
-
- pascal OSErr AEInstallThreadedEventHandler(
- AEEventClass theAEEventClass,
- AEEventID theAEEventID,
- AEEventHandlerUPP proc,
- long handlerRefcon,
- ThreadOptions options,
- Size stacksize);
-
-
-
- #ifdef __cplusplus
- }
- #endif
-
- #endif // __AETHREADS__